//
//  ShoppingManager.h
//  EasyToo
//
//  Created by zhengzhe on 13-9-10.
//
//

#import <Foundation/Foundation.h>
#import "ServerCommunicationDelegate.h"

@protocol ShoppingManagerDelegate <NSObject>
@optional

- (void)onGetShoppingCategoryFinish:(BOOL)isSuccess
                          Categorys:(NSMutableArray*)categorys;

- (void)onGetCategoryGoods:(BOOL)isSuccess
                GoodsArray:(NSMutableArray*)goods;

- (void)onSubmitOrders:(BOOL)isSuccess
                    Tn:(NSString*)tn;

- (void)onGetRecommendProducts:(BOOL)isSuccess
                    GoodsArray:(NSMutableArray*)goodsArray
                 MerchantArray:(NSMutableArray*)merchantArray;

@end

@interface ShoppingManager : NSObject <ServerCommunicationDelegate>

@property (nonatomic, assign) id<ShoppingManagerDelegate> delegate;

+ (ShoppingManager*)shareManager;

- (void)getShoppingCategory;

- (void)getCategoryGoods:(NSString*)categoryId;

- (void)submitOrders:(NSMutableArray*)orders tel:(NSString*)telNum;

- (void)getRecommends;

@end
